package com.googlecode.jerato.common.data.oracle;

import java.util.List;
import java.util.logging.Logger;

import com.googlecode.jerato.core.store.StoreTransaction;
import com.googlecode.jerato.library.SettingsParser;
import com.googlecode.jerato.library.SystemService;
import com.googlecode.jerato.library.store.StoreService;
import com.googlecode.jerato.library.store.StoreTransactionService;
import com.googlecode.jerato.library.store.XmlStoreFunction;

public class CurrentTimestampSelect extends XmlStoreFunction{
	protected static final Logger LOG = Logger.getLogger(SettingsParser.class.getName());

	public static void main(String[] args) {
		SystemService.staticInitialize();
		StoreTransaction transaction = null;
		try{
			LOG.info("startup");
			transaction = StoreTransactionService.beginTransaction();
			List list = StoreService.getInstance().select(null, CurrentTimestampSelect.class, null);
			LOG.info("" + list);
		}
		finally{
			StoreTransactionService.endTransaction(transaction);
			SystemService.staticFinalize();
		}
	}
}
